//package org.spring.config.client.config;
//
//import java.io.IOException;
//
//import javax.servlet.FilterChain;
//import javax.servlet.ServletException;
//import javax.servlet.annotation.WebFilter;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import org.springframework.web.filter.CharacterEncodingFilter;
//
///**
// * 
//		* ClassName: EncodingFilter <br/>
//		* Function: TODO ADD FUNCTION. <br/>
//		* Reason: TODO ADD REASON(可选). <br/>
//		* date: 2019年10月18日 上午9:24:30 <br/>
//		*
//		* @author admin
//		* @version 
//		* @since JDK 1.8
// */
//@WebFilter(filterName = "FilterDemo01", urlPatterns = { "/*" })
//public final class EncodingFilter extends CharacterEncodingFilter {
//
//	@Override
//	protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
//			throws ServletException, IOException {
//	    System.out.println("00000000000000000000000");
//		request.setCharacterEncoding("utf-8");
//		response.setContentType("text/html;charset=UTF-8");
//		filterChain.doFilter(request, response);
//	}
//
//	@Override
//	public String getEncoding() {
//		return super.getEncoding();
//	}
//
//	@Override
//	public void setEncoding(String encoding) {
//		super.setEncoding(encoding);
//	}
//
//	@Override
//	public void setForceRequestEncoding(boolean forceRequestEncoding) {
//		super.setForceRequestEncoding(forceRequestEncoding);
//	}
//
//	@Override
//	public void setForceResponseEncoding(boolean forceResponseEncoding) {
//		super.setForceResponseEncoding(forceResponseEncoding);
//	}
//}
